import urllib, urllib2, json

url = 'http://www.yad2.co.il/Nadlan/rent.php?City=%E0%F9%E3%E5%E3&Neighborhood=&HomeTypeID=&fromRooms=2.5&untilRooms=3.5&fromPrice=&untilPrice=&PriceType=1&FromFloor=&ToFloor=&EnterDate=&Info='

headers = {'User-Agent' : 'Mozilla 5.10'}

request = urllib2.Request(url,None,headers)

response = urllib2.urlopen(request)

html = response.read()

from bs4 import BeautifulSoup

parsed_html = BeautifulSoup(html)
'''print parsed_html.body.find('div', attrs={'id':'all_results_table'}).mainTable_top'''

print(parsed_html.prettify())
